/**
 * 
 */
$.validator.setDefaults({
});

$().ready(function() {
	
	 $('#signinform input[type="text"]').tooltipster({ 
	        trigger: 'custom', // default is 'hover' which is no good here
	        onlyOne: false,    // allow multiple tips to be open at a time
	        position: 'right'  // display the tips to the  of the element
	        
	    });
	  $('#signinform input[type="password"]').tooltipster({ 
	        trigger: 'custom', // default is 'hover' which is no good here
	        onlyOne: false,    // allow multiple tips to be open at a time
	        position: 'right'  // display the tips to the right of the element
	  
	    });
	  
	  
		// validate signin form on keyup and submit
		$("#signinform").validate({
			
			rules : {
				email_address : {
					required : true,
					minlength : 3
				},
				
				passwrd : {
					required : true,
					minlength : 5
				}
				
			},
			 errorPlacement: function (error, element) {
		            $(element).tooltipster('update', $(error).text());
		            $(element).tooltipster('show');
		        },
		        success: function (label, element) {
		            $(element).tooltipster('hide');
		        }
		    }); 
	  

});


	



